<?php

namespace Transform;

class Filter
{
    private $method;
    private $args;

    public function __construct($method)
    {
        $this->method = $method;
    }
    
    public static function build($method)
    {
        $instance = new static($method);
        return $instance;
    }

    public function args($args)
    {
        $this->args = $args;
        return $this;
    }

    public function getMethod()
    {
        return $this->method;
    }

    public function getArgs()
    {
        return $this->args;
    }
}